//package com.lb.bs.client.adapter.spring;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
//import org.springframework.beans.factory.support.BeanDefinitionRegistry;
//import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
//import org.springframework.beans.factory.support.GenericBeanDefinition;
//import org.springframework.core.Ordered;
//import org.springframework.core.PriorityOrdered;
//
///**
// * program: LB-BS-Client
// * author: bsworld.xie
// * create: 2019-11-27 10:28
// * description:
// */
//public class LBFirstBean implements BeanDefinitionRegistryPostProcessor, PriorityOrdered {
//
//    private static final Logger logger = LoggerFactory.getLogger(LBFirstBean.class);
//
//    @Override
//    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
//        logger.info("postProcessBeanDefinitionRegistry(), start");
//        registerAspect(beanDefinitionRegistry);
//    }
//
//
//    private void registerAspect(BeanDefinitionRegistry registry) {
//        GenericBeanDefinition beanDefinition = new GenericBeanDefinition();
//        beanDefinition.setBeanClass(LBAspect.class);
//        beanDefinition.setLazyInit(false);
//        beanDefinition.setAbstract(false);
//        beanDefinition.setAutowireCandidate(true);
//        beanDefinition.setScope("singleton");
//        registry.registerBeanDefinition("lBAspect", beanDefinition);
//    }
//
//
//
//    @Override
//    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
//    }
//
//    @Override
//    public int getOrder() {
//        return Ordered.HIGHEST_PRECEDENCE + 1;
//    }
//}
